import request from '@/utils/request'

// 查询工艺列表
export function listArtTable(query) {
  return request({
    url: '/ruoyiyinzheng/artTable/list',
    method: 'get',
    params: query
  })
}

// 查询工艺详细
export function getArtTable(id) {
  return request({
    url: '/ruoyiyinzheng/artTable/' + id,
    method: 'get'
  })
}

// 新增工艺
export function addArtTable(data) {
  return request({
    url: '/ruoyiyinzheng/artTable',
    method: 'post',
    data: data
  })
}

// 修改工艺
export function updateArtTable(data) {
  return request({
    url: '/ruoyiyinzheng/artTable',
    method: 'put',
    data: data
  })
}

// 删除工艺
export function delArtTable(id) {
  return request({
    url: '/ruoyiyinzheng/artTable/' + id,
    method: 'delete'
  })
}
